/* -------------------------- htmlparser/text.js ---------------------------- */
'use strict';
(function() {
   VED.htmlParser.text = VED.htmlParser.node.extend({

      initialize: function( value ) {
         this.value = value;
         this._ = {
            isBlockLike: false
         }
      },

      type: 3,

      filter: function( filter ) {
         if ( !( this.value = filter.onText( this.value, this ) ) ) {
            this.remove();
            return false;
         }
      },

      writeHtml: function( writer, filter ) {
         if ( filter )
            this.filter( filter );

         writer.text( this.value );
      }
   });
})();





